<!DOCTYPE html>
<!--suppress ALL-->
<!-- saved from url=(0022)http://www.hasbei.com/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--<base target="_blank">-->
    <base href="." target="_blank">
    <title th:text="${sear+'-有贝口腔网'}"></title>
    <meta name="keywords" th:content="${sear}+',口腔知识,口腔资讯,口腔问题'">
    <meta name="description" th:content="${sear}+',有贝口腔网为用户提供专业的口腔资讯，口腔知识，口腔问题，口腔卫生等综合服务型网站'">

    <link rel="stylesheet" href="/css/swiper.min.css">
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/commone.css">
    <link rel="stylesheet" href="/css/commtwo.css">
    <link rel="stylesheet" href="/css/commthree.css">

    <link rel="stylesheet" media="screen and (min-width:481px)" href="/css/searchlist.css">
    <link rel="stylesheet" media="screen and (max-width:480px)" href="/css/searchlist(1).css">

    <script src="/js/hm.js"></script>

    <script type="text/javascript">
        var basePath = "/";
    </script>
    <!--<script src="/js/common.js"></script>-->
    <script src="/js/jquery-3.5.1.min.js"></script>
    <script src="/js/footfixed.js"></script>
    <script src="/js/layer.js"></script>
    <link rel="stylesheet" href="/css/layer(1).css" id="layuicss-layer">
    <script type="text/javascript">
        $(function () {
            function newIn(){

            }
        })
    </script>
</head>
<body>
<div class="content">

    <div th:replace="~{/common/hasbei_top::hasbei_top}"></div>

    <input type="hidden" id="sear" th:value="${sear}">
    <div class="content-main">
        <!-- <th:block th:insert="top::tab"/> -->

        <div class="search-info">
            <div class="search-content">
                <div class="search-area">
                    <form action="/search" method="get" target="_self">
                        <div class="main-search">
                            <input class="main-search-input" type="text" name="sear" placeholder="请输入相关口腔信息搜索" th:value="${sear}">
                            <label>
                                <img th:src="@{/icon/search-icon.png}">
                                <input type="submit" value="搜索">
                            </label>
                        </div>
                    </form>
                </div>
                <div class="search-list">
                    <div class="search-result">为您找到相关结果约<span th:text="${searchCount}"></span>个</div>
                    <!--十条  搜索-->
                    <div th:each="search:${appSearchTS}">
                        <div class="search-list-item" th:if="${search.getState()} == 2">
                            <div class="search-item-text">
                                <div class="search-item-title">
                                    <a th:href="${'/answers_ptl/'+search.getAqId()}" th:utext="${search.getSearchTitle()}"></a>
                                </div>
                                <div class="search-item-desc">
                                    <a th:href="${'/answers_ptl/'+search.getAqId()}" th:text="${search.getSearchSynopsis()}"></a>
                                </div>
                                <div class="list-item-info">
                                    <a th:href="${'/answers_main/'+search.getClassifyId()}"><span class="tui-jian" th:text="${search.getClassifyT().getClassifyName()}"></span></a>
                                    <a th:href="${'/msgindex/'+search.getUserId()}" class="user-img-name">
                                        <img th:src="${search.getAppUserT().getImgPath()}">
                                        <span class="user-name" th:text="${search.getAppUserT().getUserNickname()}"></span>
                                    </a>
                                    <div class="ping-lun"><a
                                            th:href="${'/answers_ptl/'+search.getAqId()}"><img
                                            src="/images/pinglun.png"><span><span th:text="${search.getCaCount()}"></span>回答</span></a></div>
                                    <div class="shou-cang"><a
                                            th:href="${'/answers_ptl/'+search.getAqId()}"><img
                                            src="/images/shoucang.png"><span><span th:text="${search.getCollectCount()}"></span>收藏</span></a></div>

                                    <div class="yue-du"><a
                                            th:href="${'/answers_ptl/'+search.getAqId()}"><img
                                            src="/images/yuedu.png"><span><span th:text="${search.getReadCount()}"></span>阅读</span></a></div>
                                    <span class="dotted">·</span>
                                    <span class="time-before" th:text="${#dates.format(search.getCreateTime(),'MM-dd HH:mm')}"></span>
                                </div>
                            </div>
                        </div>
                        <div class="search-list-item" th:if="${search.getState()} == 1">

                            <div class="search-item-left">
                                <a th:href="${'/consult_solo/'+search.getAqId()}">
                                    <img th:src="${search.getImgPath()}" alt="有贝口腔网">
                                </a>
                            </div>
                            <div class="search-item-right">
                                <div class="search-item-title">
                                    <a th:href="${'/consult_solo/'+search.getAqId()}" th:utext="${search.getSearchTitle()}"></a>
                                </div>
                                <div class="search-item-desc"><a th:href="${'/consult_solo/'+search.getAqId()}" th:text="${search.getSearchSynopsis()}"></a></div>
                                <div class="list-item-info">
                                    <a th:href="${'/zx/'+search.getClassifyId()}"><span class="tui-jian" th:text="${search.getClassifyT().getClassifyName()}"></span></a>
                                    <!-- <span class="come-on" th:text="${vo.sourceName}"></span> -->

                                    <div class="ping-lun"><a th:href="${'/consult_solo/'+search.getAqId()}"><img src="/images/pinglun.png"><span><span th:text="${search.getCaCount()}"></span>评论</span></a></div>
                                    <div class="shou-cang"><a th:href="${'/consult_solo/'+search.getAqId()}"><img src="/images/shoucang.png"><span><span th:text="${search.getCollectCount()}"></span>收藏</span></a></div>

                                    <div class="yue-du"> <a th:href="${'/consult_solo/'+search.getAqId()}"><img src="/images/yuedu.png"><span><span th:text="${search.getReadCount()}"></span>阅读</span></a></div>
                                    <span class="dotted">·</span>
                                    <span class="time-before" th:text="${#dates.format(search.getCreateTime(),'MM-dd HH:mm')}"></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="more-content">
                    <script type="text/javascript">
                        var page = 1;
                        function loadInfo() {
                            if(page<1){
                                page=1;
                            }
                            page++;

                            var sear = $("#sear").val();

                            $(".load-more").show();
                            $(".load-more-two").hide();
                            $(".no-data").hide();
                            $.post("/searchPage?sear="+sear+"&page="+page,function(data){
                                console.log(data)
                                $(".load-more").hide();
                                //如果没有数据了就隐藏
                                if(data == null || data.length<1){
                                    $(".no-data").show();
                                }else{
                                    $(".load-more-two").show();
                                    $(".search-list").append(data);
                                }
                            });
                        }
                    </script>
                    <div class="load-more" style="display:none;">
                        <img src="/img/load-more.gif" alt="有贝口腔网">
                        <span>加载中</span>
                    </div>
                    <div class="load-more-two load-more-fade" onclick="loadInfo()">点击加载更多</div>
                    <div class="no-data" style="display:none;">-- 没有数据啦,我是有底线的哦 --</div>
                </div>
            </div>


            <div class="aside-left margin-t0">

                <div class="wonderful-top">
                    <div class="wonderful-top-title">热搜排行</div>
                    <div class="allsee-item">
                        <ul>
                            <li th:each="search,userStat:${readSearch}">
                                <div  th:if="${search.getState()} == 2">
                                    <a th:href="${'/answers_ptl/'+search.getAqId()}">
                                        <span th:class="${userStat.index}<3?'other-bg':''" th:text="${userStat.index+1}"></span>
                                        <div th:text="${search.getSearchTitle()}"></div>
                                    </a>
                                </div>
                                <div  th:if="${search.getState()} == 1">
                                    <a th:href="${'/consult_solo/'+search.getAqId()}">
                                        <span th:class="${userStat.index}<3?'other-bg':''" th:text="${userStat.index+1}"></span>
                                        <div th:text="${search.getSearchTitle()}"></div>
                                    </a>
                                </div>

                            </li>
                        </ul>
                    </div>
                </div>
            </div>

        </div>
    </div>


    <div th:replace="common/hasbei_bottom"></div>

    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?4245936cbef31e434e2b387b56dfd7d8";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>


</div>

</body>
</html>